/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.vo;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Usuario
 */
@Entity
@Table(name = "vehiculo")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Vehiculo.findAll", query = "SELECT v FROM Vehiculo v"),
    @NamedQuery(name = "Vehiculo.findByIdAuto", query = "SELECT v FROM Vehiculo v WHERE v.idAuto = :idAuto"),
    @NamedQuery(name = "Vehiculo.findByIdCliente", query = "SELECT v FROM Vehiculo v WHERE v.idCliente = :idCliente"),
    @NamedQuery(name = "Vehiculo.findByIdLavado", query = "SELECT v FROM Vehiculo v WHERE v.idLavado = :idLavado"),
    @NamedQuery(name = "Vehiculo.findByMarca", query = "SELECT v FROM Vehiculo v WHERE v.marca = :marca"),
    @NamedQuery(name = "Vehiculo.findByTipoAuto", query = "SELECT v FROM Vehiculo v WHERE v.tipoAuto = :tipoAuto"),
    @NamedQuery(name = "Vehiculo.findByPlaca", query = "SELECT v FROM Vehiculo v WHERE v.placa = :placa"),
    @NamedQuery(name = "Vehiculo.findByLlantas", query = "SELECT v FROM Vehiculo v WHERE v.llantas = :llantas"),
    @NamedQuery(name = "Vehiculo.findByPuertas", query = "SELECT v FROM Vehiculo v WHERE v.puertas = :puertas")})
public class Vehiculo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "ID_AUTO")
    private Integer idAuto;
    @Column(name = "ID_CLIENTE")
    private Integer idCliente;
    @Column(name = "ID_LAVADO")
    private Integer idLavado;
    @Column(name = "MARCA")
    private String marca;
    @Column(name = "TIPO_AUTO")
    private String tipoAuto;
    @Column(name = "PLACA")
    private String placa;
    @Column(name = "LLANTAS")
    private Integer llantas;
    @Column(name = "PUERTAS")
    private Integer puertas;

    public Vehiculo() {
    }

    public Vehiculo(Integer idAuto) {
        this.idAuto = idAuto;
    }

    public Integer getIdAuto() {
        return idAuto;
    }

    public void setIdAuto(Integer idAuto) {
        this.idAuto = idAuto;
    }

    public Integer getIdCliente() {
        return idCliente;
    }

    public void setIdCliente(Integer idCliente) {
        this.idCliente = idCliente;
    }

    public Integer getIdLavado() {
        return idLavado;
    }

    public void setIdLavado(Integer idLavado) {
        this.idLavado = idLavado;
    }

    public String getMarca() {
        return marca;
    }

    public void setMarca(String marca) {
        this.marca = marca;
    }

    public String getTipoAuto() {
        return tipoAuto;
    }

    public void setTipoAuto(String tipoAuto) {
        this.tipoAuto = tipoAuto;
    }

    public String getPlaca() {
        return placa;
    }

    public void setPlaca(String placa) {
        this.placa = placa;
    }

    public Integer getLlantas() {
        return llantas;
    }

    public void setLlantas(Integer llantas) {
        this.llantas = llantas;
    }

    public Integer getPuertas() {
        return puertas;
    }

    public void setPuertas(Integer puertas) {
        this.puertas = puertas;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idAuto != null ? idAuto.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Vehiculo)) {
            return false;
        }
        Vehiculo other = (Vehiculo) object;
        if ((this.idAuto == null && other.idAuto != null) || (this.idAuto != null && !this.idAuto.equals(other.idAuto))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "data.vo.Vehiculo[ idAuto=" + idAuto + " ]";
    }
    
}
